import axios from '@/libs/api.request'

// 收款账户
export class FinanceCollectingAccountApi {
  // 获取财务收款账户管理
  static getList (params) {
    return axios.request({
      url: '/FinanceCollectingAccount/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 编辑时获取当前数据
  static getInfo (params) {
    return axios.request({
      url: '/FinanceCollectingAccount/GetInfo',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 新增编辑
  static postCollectingAccount (params) {
    return axios.request({
      url: '/FinanceCollectingAccount/PostCollectingAccount',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除
  static delete (params) {
    return axios.request({
      url: '/FinanceCollectingAccount/Delete',
      method: 'delete',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 导出收款账户
  static export (params) {
    return axios.request({
      url: '/FinanceCollectingAccount/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导入
  static enable (params) {
    return axios.request({
      url: '/FinanceCollectingAccount/Enable',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
